package com.milkyTea.Services;






import java.io.IOException;

import javax.servlet.ServletException;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.milkyTea.Dao.FooterDao;
import com.milkyTea.Dao.newDao;
import com.milkyTea.Dao.productDao;
import com.milkyTea.houTaiDao.ProductDao;


@WebServlet("/IndexSerclet")
public class IndexSerclet extends HttpServlet {
	FooterDao footer=new FooterDao();
	//productDao  product=new productDao();
	newDao   newdao=new newDao();
	ProductDao product=new ProductDao();
	protected void service(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {
		request.setAttribute("pro", product.getProduct());	
		request.setAttribute("newsd",newdao.getNewPage());	
		request.setAttribute("home", footer.gethomeinfo());	
		
		request.getRequestDispatcher("/index.jsp").forward(request, response);
	}



	
	
}
